package com.restaurant.application.coupon;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.UID;

/**
 * @author Administrator
 */
public class CouponDesc extends UnitDescription {

    public static void main(String[] args) {
        getUnitDescription().run("./");
    }

    private static UnitDescription getUnitDescription() {
        UnitDescription desc = UnitDescription.basicUnit(Coupon.class, "CouponData");
        desc.nextBean("CouponData")
                .add("couponManageUid", UID.class)
                .add("number", String.class)
                .add("endTime", Long.class)
                .add("type", String.class)
                .add("modality", String.class)
                .add("fullMoney", Double.class)
                .add("minusMoney", Double.class)
                .add("shopUid", UID.class)
                .add("shopName", String.class)
                .add("remarks", String.class)
                .add("state", String.class)
                .add("id", String.class)
                .add("modifyTime", Long.class)
                .add("createTime", Long.class)
                .add("customerId", String.class)
                .add("customerUid", UID.class)
                .add("customerName", String.class)
                .add("phone", String.class)
                .add("qrCodeUrl", String.class)
                .add("qrCodeUid", UID.class)
                .add("couponState", String.class)
                .add("currentCustomerId", String.class)
                .add("currentCustomerUid", UID.class)
                .add("currentCustomerName", String.class)
                .add("currentPhone", String.class)
                .add("usedCustomerId", String.class)
                .add("usedCustomerUid", UID.class)
                .add("usedCustomerName", String.class)
                .add("usedPhone", String.class)
                .add("usedTime", Long.class)
                .add("userId", String.class)
                .add("userUid", UID.class)
                .add("userName", String.class)
                .add("version", Integer.class)
        ;
        return desc;
    }
}
